op-alloy-genesis
Genesis types for Optimism.
Usage
By default, op-alloy-genesis
enables both std
and serde
features.
If you're working in a no_std
environment (like kona
), disable default features like so.
[]
= { = "x.y.z", = false, = ["serde"] }
Rollup Config
op-alloy-genesis
exports a RollupConfig
, the primary genesis type for Optimism Consensus.
There are a few constant declarations for various chain's rollup configs.
use ;
let op_mainnet_config = rollup_config_from_chain_id.expect;
assert_eq!;
Provenance
This is based off of alloy-genesis.